package com.ruoyi.web.controller.information;


import com.jianqiao.information.sorts.domain.SortsEntity;
import com.jianqiao.information.sorts.service.SortsService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * author: znh
 * create: 2024/7/18 9:23
 **/
@RestController
@RequestMapping("/information/sorts")
public class SortsController {
    @Autowired
    private SortsService sortsService;

    @GetMapping("/list")
    public AjaxResult list() {
        List<SortsEntity> sortsList = sortsService.getPage();
        return AjaxResult.success(sortsList);
    }

}
